package com.ruoyi.web.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Description 不同地磁-入参
 * @Author liuhl
 * @Date 2024/4/23
 **/
@Data
@ApiModel(value = "DifferentMagneticVo", description = "不同地磁-入参")
public class DifferentMagneticVo {

    @ApiModelProperty("年份yyyy")
    private Integer time;

    @ApiModelProperty("地磁条件：period_of_quiet_magnetic_storm 代表地磁平静期，period_of_weak_magnetic_storm 为弱磁暴期，periods_of_severe_magnetic_storms 为强磁暴期，单选")
    private String magneticLevel;

    @ApiModelProperty("情景")
    private String scene;

    @ApiModelProperty("卫星名称,前端给的是表名：SWDATA_OBS_DEN_SWARMA")
    private String sateName;

    @ApiModelProperty("模型，多选： a,b,c")
    private String model;

    @ApiModelProperty("通讯ID,计算评估需要推送进度")
    private String sseId;

    @ApiModelProperty("计算结果路径")
    private String txtPath;

    public String getMagLevelName(String code){
        String result = "";
        switch (code){
            case "period_of_quiet_magnetic_storm":
                result = "地磁平静期";
                break;
            case "period_of_weak_magnetic_storm":
                result = "弱磁暴期";
                break;
            case "periods_of_severe_magnetic_storms":
                result = "强磁暴期";
                break;
        }
        return result;
    }


}
